function init_global5

% initialize values for global variables

global NUMBER_OF_EVENTS LENGTH BIG TNOW MAINT_COST REPAIR_COST SALES_REVENUE EXP_RATE 
global SHAPE1 SCALE1 SHAPE2 SCALE2 A3 B3 B U L MU STATES_MAX NET_ITERMAX ISTAR THRESHOLD
% types of events 1=termination; 2=produce;3=repair; 4=maintenance 
ISTAR=1;
THRESHOLD=6;
global ENCODER_UL_PC % upper limit for encoder for likely value of production count in neuron

ENCODER_UL_PC=20;

NET_ITERMAX=2;
NUMBER_OF_EVENTS = 4; 

LENGTH=1000000;

BIG=10000001; % has to be bigger than LENGTH 

STATES_MAX=100;

TNOW=0;

% gamma distribution for time between failures: defined by (shape,scale)
% where mean =shape*scale (in days); variance =shape*(scale*scale) (in
% days-squared)

B=3; % upper limit for size of buffer




% Following are parameters of the uniform distribution for maintenance time

U=20;

L=5;

% Following parameters from gamma distribution for time between failures

SHAPE1 = 8; 

SCALE1 = 12.5;

% Following parameters from gamma distribution for production time

SHAPE2=8;

SCALE2=1.25;

% Following parameters from unif distribution for repair time

A3=150;

B3=250;





MAINT_COST=20; % cost of one maintenance in dollars

REPAIR_COST=70; % cost of one repair in dollars

SALES_REVENUE=10;

EXP_RATE=0.5;


